import 'package:flutter/material.dart';
import 'package:flutter_van_android/widget/status_view.dart';

class MinePage extends StatefulWidget {
  const MinePage({super.key});

  @override
  State<MinePage> createState() => _MinePageState();
}

class _MinePageState extends State<MinePage> {
  late final StatusViewController _controller;

  @override
  void initState() {
    super.initState();
    _controller = StatusViewController();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        extendBodyBehindAppBar: true,
        appBar: AppBar(
          title: Text('个人中心'),
          actions: [
            IconButton(
              icon: Icon(Icons.settings),
              onPressed: () {},
            )
          ],
        ),
        body: Center(child: Text('消息', style: TextStyle(fontSize: 24))));
  }

  void _loading() {
    _controller.showLoading();
    Future.delayed(const Duration(seconds: 2), _controller.showEmpty);
  }
}
